//
//  MeicalModel.m
//  tabelDemo
//
//  Created by 王炯 on 16/7/8.
//  Copyright © 2016年 王炯. All rights reserved.
//

#import "MeicalModel.h"

@implementation MeicalModel


//编码ContactModel
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_medicalName forKey:@"MedicalName"];
    
    [aCoder encodeObject:_medicalImage forKey:@"MedicalImage"];
    
    [aCoder encodeObject:_medicalDetail forKey:@"MedicalDetail"];
    
    [aCoder encodeObject:_medicalDescrip forKey:@"MedicalDescrip"];
    
}
//解码ContactModel
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init])
    {
        self.medicalName = [aDecoder decodeObjectForKey:@"MedicalName"];
        
        self.medicalImage = [aDecoder decodeObjectForKey:@"MedicalImage"];
        
        self.medicalDetail = [aDecoder decodeObjectForKey:@"MedicalDetail"];
        
        self.medicalDescrip = [aDecoder decodeObjectForKey:@"MedicalDescrip"];
        
    }
    return self;
}


@end
